package com.lyf.scm.admin.domain.service;

import com.lyf.scm.admin.api.dto.GmvTargetDTO;
import com.lyf.scm.admin.api.dto.GmvTargetInfoDTO;
import com.lyf.scm.admin.api.dto.PlanResponseDTO;
import com.lyf.scm.common.model.ExcelExportDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * description:
 * gmv指标service
 *
 * @author: haodong
 * @data: 2020/7/8 16:34
 */
public interface GmvTargetService {

    /**
     * 按条件查询gmv指标
     *
     * @param gmvTarget
     * @return
     */
    PlanResponseDTO<GmvTargetInfoDTO> listBySelective(GmvTargetDTO gmvTarget);

    /**
     * 查询全部gmv指标
     *
     * @param gmvTarget
     * @return
     */
    PlanResponseDTO<GmvTargetInfoDTO> listAllBySelective(GmvTargetDTO gmvTarget);

    /**
     * 导入验证
     * @param file
     * @return
     */
    Boolean importVerification(MultipartFile file,Integer type);

    /**
     * 导出Excel文件
     * @param excelExportDTO
     * @param type
     */
    feign.Response exportExcel(ExcelExportDTO excelExportDTO, Integer type);

    /**
     * 更新销售额目标
     * @param gmvTarget
     * @return
     */
    Boolean updateTarget(List<GmvTargetDTO> gmvTarget);
}
